package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.SubDevices;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 杨博文
 * @description 针对表【sub_devices(子设备表)】的数据库操作Service
 * @createDate 2024-11-25 09:23:39
 */
public interface SubDevicesService extends IService<SubDevices> {

    /**
     * 新增子设备
     *
     * @param subDevices
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    public Boolean InsertSubDevice(List<SubDevices> subDevices);

    /**
     * 修改子设备
     *
     * @param subDevices
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    public Boolean UpdateSubDevice(List<SubDevices> subDevices);

    /**
     * 删除子设备
     *
     * @param eid
     * @return
     */
    @Transactional(rollbackFor = Exception.class)
    public Boolean DeleteSubDevice(List<String> eid);

    public List<SubDevices> selectSubDevicesByDeviceId(String deviceId);
}
